You should use a larger cushion of space:

A two-second following distance is generally appropriate. Allow a larger cushion of space when riding under conditions that will increase your stopping distance, such as when the road surface is icy or wet.
DMV Writen Test