multiple gallery fix