Gallery fix for views shortcode