fixed animation to be smooth in both directions
change container size and hide scrollbar