Verify tags used in the gallery shortcode.