Fixed issues with gallery layout, swipe and pushstate
Fixed jshitn errors
Merge pull request #1232 from guardian/fix-gallery-swipe

Fix gallery swipe