[FEATURE] Prevent overflow of thumbnails over padded layouts.

[Resolves #67]