slice fixes in ndarray