Hey Dawg, "5 days from day 25" is a confusing way of saying day 20 or possibly day 30. . . I'm not really sure which. Either way, I don't think I will be able to diagnose your exact problem, even with more info/pictures, so instead of even asking for that stuff, I figure this chart might be more beneficial. It shows some things that can be done to a tomato plant to steer its growth habits more towards reproductive or vegetative growth. More vegetatively leaning growth will of course have tighter internodes. Finding a good balance between steering towards flowering or towards veg during the first month after flip is helpful to getting tighter internodes without excessively leafy buds.
View attachment 333801
Ignore the 2 lines referencing a "grow pipe" since I don't think that technique has transferred over to our industry yet.
-Meeks