Layered layout: New parameter "direction" (LEFT, RIGHT, UP, DOWN)