add some flash.
 one layer has an unique name now.
validating number of layer before cloning a layer
validate the number of  used_layers.