move slides code to slides module