fixed sliding.

offset is a tiny bit off but it's hard to notice and can be fixed later