Moves start and end indexes into their own object