fix for 2d slices in applyJ&T
Merge pull request #1491 from Kenneth-T-Moore/slice

fix for 2d slices in applyJ&T