fix resizing bug with the hero panel