How can I make the slider to play the images successively and dont’t
overlay each other