get total width of elements