fix slide bug and update scroll method