It's magic!

Disclaimer: Slideshow taken from http://jquery.malsup.com/cycle/prevnext.html