Carousel: Fix issue with multiple galleries on one page

See issue #417: "Incorrect slide is selected during
`hashchange` event with multiple galleries on the page"

https://github.com/Automattic/jetpack/issues/417
Merge pull request #1051 from Automattic/rad/multiple-galleries

Carousel: Fix issue with multiple galleries on one page