Attempt to make coverflow layout orientation agnostic.
Merged Jonathan Wright's changes.