improve grid spacing