o Fixed slices() function to use new API.