fix for gallery heigh being incorrect