Hi Hui,
please see the shift option of pair_modify "http://lammps.sandia.gov/doc/pair_modify.html"
Jan-Michael