Dear Student
The Epithalamus is the dorsal segment of diencephalon.
It contains both thalamus and hypothalamus due to it's location in the centre of the brain. It forms a linkage between lymbic system components in the forebrain and other parts of the brain.
Regards