update margin size