adjust imagegrid layout