Added code to give all indices along one slice.