diff --git a/responsiveslides.js b/responsiveslides.js
index 625da95..d968d9a 100644
--- a/responsiveslides.js
+++ b/responsiveslides.js
@@ -343,7 +343,7 @@
// Determine where to slide
var idx = $slide.index($visibleClass),
- prevIdx = idx - 1 < 0 ? idx : idx - 1,
+ prevIdx = idx - 1 < 0 ? length - 1 : idx - 1,
nextIdx = idx + 1 < length ? index + 1 : 0;
// Go to slide
diff --git a/responsiveslides.min.js b/responsiveslides.min.js
index 21d4832..84896a4 100644
--- a/responsiveslides.min.js
+++ b/responsiveslides.min.js
@@ -1,8 +1,2 @@
/*! http://responsiveslides.com v1.54 by @viljamis */
-(function(c,I,B){c.fn.responsiveSlides=function(l){var a=c.extend({auto:!0,speed:500,timeout:4E3,pager:!1,nav:!1,random:!1,pause:!1,pauseControls:!0,prevText:"Previous",nextText:"Next",maxwidth:"",navContainer:"",manualControls:"",namespace:"rslides",before:c.noop,after:c.noop},l);return this.each(function(){B++;var f=c(this),s,r,t,m,p,q,n=0,e=f.children(),C=e.size(),h=parseFloat(a.speed),D=parseFloat(a.timeout),u=parseFloat(a.maxwidth),g=a.namespace,d=g+B,E=g+"_nav "+d+"_nav",v=g+"_here",j=d+"_on",
-w=d+"_s",k=c("
"),x={"float":"left",position:"relative",opacity:1,zIndex:2},y={"float":"none",position:"absolute",opacity:0,zIndex:1},F=function(){var b=(document.body||document.documentElement).style,a="transition";if("string"===typeof b[a])return!0;s=["Moz","Webkit","Khtml","O","ms"];var a=a.charAt(0).toUpperCase()+a.substr(1),c;for(c=0;c"+a+""});k.append(A);l.navContainer?c(a.navContainer).append(k):f.after(k)}a.manualControls&&(k=c(a.manualControls),k.addClass(g+"_tabs "+d+"_tabs"));(a.pager||a.manualControls)&&k.find("li").each(function(a){c(this).addClass(w+(a+1))});if(a.pager||a.manualControls)q=
-k.find("a"),r=function(a){q.closest("li").removeClass(v).eq(a).addClass(v)};a.auto&&(t=function(){p=setInterval(function(){e.stop(!0,!0);var b=n+1"+a.prevText+""+a.nextText+"";l.navContainer?c(a.navContainer).append(g):f.after(g);var d=c("."+d+"_nav"),G=d.filter(".prev");d.bind("click",function(b){b.preventDefault();b=c("."+j);if(!b.queue("fx").length){var d=e.index(b);b=d-1;d=d+1u&&f.css("width",u)};H();c(I).bind("resize",function(){H()})}})}})(jQuery,this,0);
+(function(e,t,n){e.fn.responsiveSlides=function(r){var s=e.extend({auto:true,speed:500,timeout:4e3,pager:false,nav:false,random:false,pause:false,pauseControls:true,prevText:"Previous",nextText:"Next",maxwidth:"",navContainer:"",manualControls:"",namespace:"rslides",before:e.noop,after:e.noop},r);return this.each(function(){n++;var o=e(this),u,a,f,l,c,h,p=0,d=o.children(),v=d.size(),m=parseFloat(s.speed),g=parseFloat(s.timeout),y=parseFloat(s.maxwidth),b=s.namespace,w=b+n,E=b+"_nav "+w+"_nav",S=b+"_here",x=w+"_on",T=w+"_s",N=e(""),C={"float":"left",position:"relative",opacity:1,zIndex:2},k={"float":"none",position:"absolute",opacity:0,zIndex:1},L=function(){var e=document.body||document.documentElement;var t=e.style;var n="transition";if(typeof t[n]==="string"){return true}u=["Moz","Webkit","Khtml","O","ms"];n=n.charAt(0).toUpperCase()+n.substr(1);var r;for(r=0;r1){if(g"+""+t+""+""});N.append(O);if(r.navContainer){e(s.navContainer).append(N)}else{o.after(N)}}if(s.manualControls){N=e(s.manualControls);N.addClass(b+"_tabs "+w+"_tabs")}if(s.pager||s.manualControls){N.find("li").each(function(t){e(this).addClass(T+(t+1))})}if(s.pager||s.manualControls){h=N.find("a");a=function(e){h.closest("li").removeClass(S).eq(e).addClass(S)}}if(s.auto){f=function(){c=setInterval(function(){d.stop(true,true);var e=p+1"+s.prevText+""+""+s.nextText+"";if(r.navContainer){e(s.navContainer).append(M)}else{o.after(M)}var _=e("."+w+"_nav"),D=_.filter(".prev");_.bind("click",function(t){t.preventDefault();var n=e("."+x);if(n.queue("fx").length){return}var r=d.index(n),i=r-1<0?v-1:r-1,o=r+1y){o.css("width",y)}};P();e(t).bind("resize",function(){P()})}})}})(jQuery,this,0)
\ No newline at end of file