gallery fix