Limit the number of rows and columns in the grid, causing input images to overflow into multiple output montages
magick montage path/to/image1.jpg path/to/image2.jpg ... -geometry +0+0 -tile 2x3 montage_%d.jpg