Katefan,
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>jQuery UI range slider to show and hide blocks of content</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/south-street/jquery-ui.css">
<style>
h1{margin:0.5em}
.ui-slider{width:650px;margin:2em 1em}
#blocks-container{float:left;margin:0 1em}
#blocks-container div{float:left;width:120px;height:100px;margin:0.5em;padding:1em;border:1px solid gray;background:#C0C0C0}
#slider{margin:10px;width:500px;height:8px}
.ui-slider-handle{border-radius:50%;position:relative;font-size:14px;display:block}
.ui-slider-horizontal .ui-slider-handle{top:-0.4em;background:#00F}
:focus{outline:0;border:0}
</style>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
</head>
<body>
<h1>jQuery UI range slider to show and hide blocks of content</h1>
<div id="slider"></div>
<div id="blocks-container">
<div>Content 1</div>
<div>Content 2</div>
<div>Content 3</div>
<div>Content 4</div>
</div>
<script>
var blocks = $("#blocks-container").children();
blocks.hide()
function showHide(event, ui) {
var range = ui.value;
blocks.each(function(i, el)
{
$(el)[i >= range? "hide": "show"]();
}
);
}
$("#slider").slider(
{
animate: true,
range: "min",
value: 0,
min: 0,
max: 4,
step: 1,
slide: showHide
}
);
</script>
</body>
</html>