setting grid size