In vanilla HTML I used comments like this:
<div id="one"></div><!--
--><div id="two"></div>
Actually this is not possible in Slim. This would be possible in Haml, using < for the parent element.
<
Some people use inline html for such cases:
Slim templates - removing whitespaces around the block tag