bug fix for slide show