slide show animation indexOutOfError bug fixed