Refactoring thumbnail scroll code to fix jumps. The thumbnail margin is explained as follows: each thumbnail has a 7px wide border. Therefore, the top and bottom border both take up 7px + 7px = 14px. The margin between the thumbnails is 5px, which gives a total margin of 14px + 5px = 19px to move to make the thumbnails show up properly