Add a simple implementation of slicing.
Add a simple implementation of slicing.