remove 2 bugs

remove bugs in slider