add nextSibling and previousSibling method