A rule of thumb: "после" is used for time relations, "за" - for spacial relations.