the index slicing has been moved to a seperate class (IndexSlicer)