An image slider made in pure Javascript