From the (now-obsolete) genitive of slapen (“sleeping”) + tijd (“time”).
slapenstijd m (plural slapenstijden, diminutive slapenstijdje n)