fix bug in slide show