@Proghat, what do you think about:
`if slide.get(0) is this then currentIndex = index`