Calculate relative height and left positions