Improved positioning of elements