fix gallery grid