This one is kind of difficult to explain with words. I'll include a video in the report so you can get a better idea of what I mean.
Basically you cannot move an item to another position if the next position involves moving it to one of the slots where it was before.
With english not being my main language, it is kinda difficult, so I'll just leave the short video here showing the issue with different items.