Put layers in a variable