Found a first solution for the not resizing issue. Fine tuning will follow.