added swipe functionality - changed the auto slide to a recurring timeout instead of interval and incorporated it into the animate function