fix slide count for repeat