update navslide.js,add swipe function