enhance load_layout_from_json, add simple resize