fixed the bug that breaks the slideshow

Fixed the following issue: https://github.com/werdewelt/wwslideshow/issues/5