Added automatic resizing based on the number of synonyms