Simplifies get_cluster_grid_size function.
tweaks grid_size calculations for clustering.