I'm not sure I understand your problem description correctly...
http://img126.imageshack.us/img126/3052/conds.th.jpg
Is this the setup you are given (with the solid lines representing the grounded conductors)?
If so, I don't think you
can do this with just two images charges. In fact, I think you'll need an
infinite number of image charges...just break the problem into pieces...
[1] Where would you put an image charge, and what would its magnitude be in order to make the potential due to this image charge and the point charge at [itex]z=\frac{R}{2}[/itex] zero at [itex]z=d[/itex]?
[2] Where would you put an image charge, and what would its magnitude be in order to make the potential due to this image charge and the point charge at [itex]z=-\frac{R}{2}[/itex] zero at [itex]z=d[/itex]?
[3] Where would you put an image charge, and what would its magnitude be in order to make the potential due to this image charge and the point charge at [itex]z=\frac{R}{2}[/itex] zero at [itex]z=-d[/itex]?
[4] Where would you put an image charge, and what would its magnitude be in order to make the potential due to this image charge and the point charge at [itex]z=-\frac{R}{2}[/itex] zero at [itex]z=-d[/itex]?
These 4 image charges will cancel the potential due to your original charges at [itex]z=\pm d[/itex], but now there will be a non-zero potential at [itex]z=-d[/itex] due the first two image charges, and a non-zero potential at [itex]z=d[/itex] due to the second two image charges...
[5&6] Where would you put two new image charges, and what would their magnitudes be in order to cancel the potential due to the first two image charges (image charges 1&2) at [itex]z=-d[/itex]?
[7&8] Where would you put two new image charges, and what would their magnitudes be in order to cancel the potential due to the second two image charges (image charges 3&4) at [itex]z=d[/itex]?
These 4 image charges will cancel the potential due to your first 4 image charges at [itex]z=\pm d[/itex], but now there will be a non-zero potential at [itex]z=d[/itex] due to image charges 5&6, and a non-zero potential at [itex]z=-d[/itex] due to image charges 7&8...
...Repeat
Ad Nauseum until a clear pattern emerges...