improve saving of old size
rework extension to have one for width and height by content and one for animated resizing