Fix for gallery in quick view