inserting svg element into correct place