Fixed bug with cleanupSlides in IE8 and IE9