Tkakar/fix 2354
Tkakar/fix 2354: a task in lifesci-single-cell-spatial-swe-envs-nocap (Harbor dataset). This PR fixes the bug of a cell selection at the end of a rotation. & 2353
The task
This PR fixes the bug of a cell selection at the end of a rotation. & #2353
Part of scalingX/lifesci-single-cell-spatial-swe-envs-nocap.