Scientists built a tiny device that holds infrared light in a layer just 40 nanometers thick—over 1,000 times thinner than a human hair.