I have some problems with understanding what is the difference between these two. According to 初級日本語, 間 refers to certain time frame whereas 間に refers to certain time frame within that time frame. Is it correct or am I missing something?