automatically set positioning on elements