manage width and height

Signed-off-by: Potsky <potsky@me.com>