This can be done, but you would have to write a few javascripts in order to achieve the format you want.

Basically you need a javascript counter. Every time the counter reaches 5, you would add a new line (<br /> or <p />) and then reset the counter to zero.