made it working with slidebox