Nonmonotonic relaxation kinetics of confined systems