made grid dimension selection more customizable