Slice by index range

Define start and end indices to get a sublist.