sets margin of layered nav