Adjust the amount of small thumbnails in overlay. Fixes #382