Just to alert you: I've now added 9-per-page layout you've mentioned. There's a sample for 3-per-page you can look at to get a general idea how it works. Hope it'll do!