Creates a new slot range.
This range contains all slots having an index between the indexes of the two given slots.