Append new elements for each element in selection

fixes #438