fix gallery box