resized Main Dialog to fit the Matrix