dlgpreferences: remember last  geometry - code improvements