They are vibrating slightly.
It is know to us that when a matter is cooled down, it's motion of molecules decreases relatively. And on the other hand, when a matter is heated, it's molecular motion increases and thus produced Kinetic Energy is converted into heat energy and hence increasing the temperature of the matter. So, when water is cooled and it changes it's state from liquid to ice, it's molecular motion is very slow.