monitor space betwwen pictures in a mosaique

enclosed are print screen to explain what i am trying to do with my code. I want to mody space between picture (on row and column)
Thanks for your help