Not to overlap floating group

Could this be helpful?
I’m quoting myself from another post.