optimized resizing of title line