Added slider and opentok function