I would have thought you'd use Math.floor() here, so that if any portion of the thumbnail is showing, it becomes the first one...  Maybe round() is better UX, though...  If less than half the thumbnail is showing it isn't very useful.  Have you tried it both ways?  I'm okay either way, but want to make sure you considered floor().