updating margin on figure