auto resizing of nodes