diff --git a/src/OutputByOrbit.cc b/src/OutputByOrbit.cc
index f1847f539df0cf2e798fef60922021b468cc4c9e..54bab7f35b2db712031d4b449c0588971f7fd458 100644
--- a/src/OutputByOrbit.cc
+++ b/src/OutputByOrbit.cc
@@ -10,7 +10,6 @@
 #include "config.h"
 #include "controls.h"
 #include "log.h"
-#include "slice.h"
 #include "tools.h"
 
 OutputByOrbitStream::OutputByOrbitStream(ctrl &c, config &conf_)
diff --git a/src/OutputByOrbit.h b/src/OutputByOrbit.h
index 26eefa6ecb079ce04ecd27563b1f7305dcda3ce1..9dcf9dfc51b9510259c20c4f543a2ed94034f838 100644
--- a/src/OutputByOrbit.h
+++ b/src/OutputByOrbit.h
@@ -7,6 +7,7 @@
 #include <string>
 
 #include "OutputFileHandler.h"
+#include "slice.h"
 #include "tbb/pipeline.h"
 
 class ctrl;