attempt to fix gallery sizing issues