resizing the main window accordingly to the number of sequencers