add slice variable to the static.js file