improve resizing, support for procentual width