Moved resizing code to its own function (resizeGUI.m)