fix gallery view