[tech] write slidepanel.js