Move GalleryController in its own custom Element directive