fix gallery overlay panel