Adding play/pause for slider