Colorbox images in grid
You can use CSS rules to position the images like you want.

Another options would be to use views to display the images, which has built in support for displaying items in a grid.

If you want a more detailed answer, you should provide more info in your question.