impl: resize (1st version)