auto resize the stage