when cells are placed horizontally together, they are connected in parallel, which delivers same potential but increases the current.
When cells are placed vertically together, they are connected in series, which delivers same current but increased potential.