Rotate and separate boxes