Moved gallery HTML into template