fixing gallery click bubbling
remove unused function
formatting
ancestor tweak
Merge pull request #6142 from guardian/gallery-clickfix

Gallery clickfix