minor bug fix
slice() issue fixed