Yes, you could implement a custom sampler, which is responsible to create the indices and pass them to the Dataset.__getitem__.
Alternatively, you could also add an offset in the __getitem__ method directly, if this would fit your use case.