automatic dimensions setting

Big +1 here