fix gallery