Spin-polarized scanning tunneling microscopy investigations reveal a significant increase of the magnetic period of spin spirals in three-atomic-layer-thick Fe films on Ir(111), from about 4 nm at 8 K to about 65 nm at room temperature. We attribute this considerable influence of temperature on the magnetic length scale of noncollinear spin states to different exchange interaction coefficients in the different Fe layers. We thus propose a classical spin model that reproduces the experimental observations and in which the crucial feature is the presence of magnetically coupled atomic layers with different interaction strengths. This model might also apply for many other systems, especially magnetic multilayers.