change pattern layout to stacked