fixing caption of galleries shortcode