Moved gallery into own directive