updating margin on maps