Rotated frame doesn't slide guides

Two rectangles, the only difference is the right-hand one is rotated by 90 degrees. Now the guide goes through the frame instead of being slices.