Employee was removing a motor from dragline. Another ee was using hoist to lift the motor. EE reached into the area to remove shims. When he did this, hoist operator moved the load resulting in EE getting his finger caught between the side of the foot and steel plate.