Switch layouts and rotate the offset