js: moved slide referencing outside enhance()