var slider = $('.slider').unleash({ slide_width: "75%", duration: 700, slide_duration: 6000, slideshow: true, initially_open_slide: 0, hide_controls: false, pause_onmouseover: true, open_event: 'drag', }).data("plugin_unleash"); $('.prev').click(function(event) { slider.goToPrev(); }); $('.play').click(function(event) { slider.play(); }); $('.pause').click(function(event) { slider.pause(); }); $('.next').click(function(event) { slider.goToNext(); }); $('.close').click(function(event) { slider.closeAll(); });