modifying text to fit in gray box without scrolling