slider animations and js