diff --git a/library/src/main/java/com/mikepenz/crossfader/Crossfader.java b/library/src/main/java/com/mikepenz/crossfader/Crossfader.java
index <HASH>..<HASH> 100644
--- a/library/src/main/java/com/mikepenz/crossfader/Crossfader.java
+++ b/library/src/main/java/com/mikepenz/crossfader/Crossfader.java
@@ -209,6 +209,7 @@ public class Crossfader {
 
         //create the cross fader container
         mCrossFadeSlidingPaneLayout = (CrossFadeSlidingPaneLayout) LayoutInflater.from(mContent.getContext()).inflate(R.layout.crossfader_base, container, false);
+        mCrossFadeSlidingPaneLayout.setCanSlide(mCanSlide);
         container.addView(mCrossFadeSlidingPaneLayout);
 
         //find the container layouts
fix withCanSlide() to work before calling build() on Crossfader