method to remove child DOM elements