it sounds like you do not have enough clothes in the machine
most front loading machines will do what you say if it has an out of balance load, it happens also with very heavy loads like towels, try putting more clothes in so that when it goes into spin it has a balanced load, if it still happens you may need to have the suspension legs replaced.
Ken Jenkins, September 2007