placed elements in row and spans