If you just want all of your images laid out in a row or grid, collection mode takes care of arranging everything for you.
OpenSeadragon({ ... collectionMode: true, collectionRows: 1, collectionTileSize: 1024, collectionTileMargin: 256, ... });
Multiple rows of tile sources visualized as a collection.
OpenSeadragon({ ... collectionMode: true, collectionRows: 2, collectionTileSize: 1024, collectionTileMargin: 256, ... });
Multiple columns of tile sources visualized as a collection.
OpenSeadragon({ ... collectionMode: true, collectionRows: 2, collectionTileSize: 1024, collectionTileMargin: 256, collectionLayout: 'vertical', ... });