some bugs in sliding