add vertical & horizontal layout