Modeling transient correlations in heartbeat dynamics during sleep