init snapGrid