Better gallery shortcode updating