When the structure flips horizontal and vertical the stereochemistry of structure also changes from S to R, and vice versa.