bugfix
slideshow rotation based on db