Added Layer::margin getter/setter.
refactoring
refactoring