Hi @jannava,
Welcome to the community
I think It’s because there’s nothing when the icon is hidden. For this you can add a rectangle and add a visibility condition visible if the true/false property is false. And group the icon and rectangle.
Same problem.
Thank you