Rename gallery to slides, change ctx of callback calling