update vertical/horizontal layout for module