improve the smoothness of scrolling background