Add position to elements.