added method for adding only spans if they do not overlap