stack_layout function

Arrange plots horizontally or vertically