added option for third dimension grid in deformGrid3d