live js for slider