update slider

add js for slider