restrict flipping to opposite side