Scrolling thumbnails not aligned

Have been looking at this tutorial, but can’t figure out why it always starts slightly indented from the left. However once you scroll across then back again the starting thumb will be in the correct position. Anyone have any fixes for this?