Set max mainwindow width to 500px