My plants are now it the 6th week of veg and its nearly reaching the max of the tent plus touching my lamp.

How do u stop them from growing anymore taller? but also want them to grow more flower? is this possible?