Add gallery shortcode to template