Individual layer panels in the legend will now collapse correctly