It could be your loader div causing the displacement. Try adding a 'position' attribute to that div:
<div class="loader" style="position:relative">
There may be more to it than that, but that is worth trying first. Make sure to refresh your browser once you make the change and preview.