fix Transform.slice bug