fix a slide u and down bug