Gallery ref depends on ... galleryRef
Merge pull request #199 from Wikia/HG-161

HG-161: Gallery ref depends on ... galleryRef