fix gallery widget