Bug fix for slider transateTo function to prevent it being called too many times.