Carousel: reposition itself on change of orientation

It used to be that switching from portrait to landscape (and vice
versa) would leave the carousel in between two images or on the
wrong image.

(Thanks to @donnielrt and @Helen-Mobify. I'm just integrating their work.)