fix gallery item