yes, sorry, index.dwt.php is the correct template page.
vertical stacking usually happens if the link to the /wasocial.css file is missing, but i see that in your code:
<link rel="stylesheet" type="text/css" href="../../../../webassist/social/wasocial.css"/>
if you provide a link where i can see the problem i can diagnose the cause.