bugs fixed

add cache file and enhance the slide left and right function