Changing font sizes for thumbnails and ensuring there is never overflow