fix move slide routine