Fixed box resizing when switching from portals to maps and vice versa