Better positioning of preview relative to code

Replaced the previous hard-coded value with a solution based on keeping the
two elements adjacent in the DOM, making relative positioning trivial.

Paired with @terrasea

Fixes #84