fix slice. closes #649