fix gallery z-index bug