Generalized heat equation and transitions between different heat-transport regimes in narrow stripes