gallery view fix