Create a slice for index and length.

def _slice_at(self, index, length=1):
        """Create a slice for index and length."""
        length_ = len(self)
        if -length <= index < 0:
            index += length_
        return slice(index, index + length)