Replace WP gallery shortcode.