addElementBeforeAfterIt