Elements after the floating elements will flow around it. To avoid this, use the clear property. The clear property specifies sides of an element other floating elements are not allowed. Add a text line into the image gallery, using the clear property.
Example:
.text_line{clear:both;}