Glossy material problem


i have a problem with a glossy material. I have a plane object with glossy material, a cube that holds two spheres, like in the picture below. I set the cube not to show the mirrored part.

What should I do in order to have that green sphere shown mirrored on the glossy plane only when it rolls off the cube?

Thank you very much. Have a nice day.