〜間 / 〜間に This pattern is used to say something happens during a period. 間 means the action continues the whole time; 間に means something happens at one point within that time.
Formation
dictionary form / ている / noun + の + 間(に)
| 夏休み | 夏休み + の + 間 | 夏休みの間 |
| 寝る | 寝ている + 間に | 寝ている間に |
| 留守 | 留守 + の + 間に | 留守の間に |
Examples
夏休みの間、ずっと祖母の家にいました。
I stayed at my grandmother's house the whole summer vacation.
寝ている間に、地震があったそうです。
I heard there was an earthquake while I was sleeping.