I noticed that native wordpress gallery has <br style="clear: both" /> in it that breaks my theme.
After the first thumbnail row there is this clearing element and while it should be clearing only inside of the post, it also clear outside.
So there is a large gap between the first and the second gallery row. The gap ends in the same place as the sidebar ends.
What do I have to do to contain this darn clearing element inside the post?