I really don't get it... what I'm doing wrong here?
jQuery(function(){
//vars
var conveyor = jQuery(".content-conveyor", jQuery("#slideWrapper")),
item = jQuery(".item", jQuery("#slideWrapper"));
conveyor.css("width", item.length * parseInt(item.css("width")));
var sliderOpts = {
max: (item.length * parseInt(item.css("width"))) - parseInt(jQuery("#slideContent", jQuery("#slideWrapper")).css("width")),
slide: function(e, ui) {
conveyor.css("left", "-" + ui.value + "px");
}
};
jQuery("#slider").slider(sliderOpts);
});