fix slide show counter