separated size stuff into an "interface" Resizable.
Signed-off-by: Lasconik <caillouxnicolas@gmail.com>