Fix bug in slide show