From the last slide to the first slide with slideUp/slideDown
<p>I made my slider but it's acting wierd when it reach the last slide and have to start again on the first. Until getting to the last slide it slides <strong>upwards</strong>, but when it has to go to the first it does it <strong>downwards</strong>. And it kind a misses the first one. I mean - it shows it (even downwards), but on my pagination dots it doestn't add class .selected to the first one. After that it acts normally again until the next cycle.</p>

<p>Why is that two things happening. I've tried to change the <code>if(active_slide.index() == last_slide.index())</code> with <code>if(active_slide.next().length == 0)</code> /and <code>&lt;</code> /; <code>if(active_slide.is(last_slide))</code> ... it didn;t help.</p>

<p>Here is jsfiddle <a href="http://jsbin.com/iwiroq/4/edit" rel="nofollow">http://jsbin.com/iwiroq/4/edit</a>.</p>
