Changing input type for grid size and offset to number.