fixed network width and height changing, and applied dynamic node size depending on width and height