update detail script to include pause youtube function on slider transition