updating container margins