Your problem definition is bit vague so here is my guess what you want.
spacers.png