resize the lattice size to 5dp