Fix gallery view