Dynamically change the board layout on orientation change.