slides refactor