Shifting and rotating overlays straight

Hey everyone, so i’m trying to rotate this overlay and i want it to rotate to a 90 degree angle which means that it shifts at the same time but whenever I do that it sort of like moves in a circular motion when I just want it to move straight. I’m not sure if that makes sense or not but if someone could help me that would be great, thank you!

Maybe ask @Dara.Amarie ?
Idk how to do it personally.

But I do hope you get what you need!