Improved Dger implementation.

Added in subslicing and range to improve Dger speed