You need to create a div for each image/ gallery line:
<div>
1st image and gallery code in here
</div>
<div>
2nd image and gallery in here
</div>
you may also want to add an overflow:hidden property to each container div:
<div style="overflow:hidden;">