separated crossfadegallery.js