RF+ENH: faster and easier implementation of slicing, getting rid of shiftdim.