Use sublots in examples

this is a rebase of #1462 against master, as discussed on that PR. I believe it is ready to merge