social loafing is one of the many reasons i don't like group work. i always end up doing all the work and they end up with the same grade as me for not doing any of the work. the best way i think to prevent it is to give everyone a specific task that they are graded on, so that if they don't do it it doesn't effect the whole group.