How would I create a horizontal slider which will slide from left to right automatically after each 1 second.