fixed bug for reseting slide show