consolidating svg elements