Bug 1059748 - Fix gallery preview on tablet
Merge pull request #23550 from shamenchens/Bug1059748-GalleryPreview-Part1

Bug 1058748 - Fix gallery preview on tablet, r=dflanagan