smart size for grid