resize method in vertex array