update margin spacing