2004 Subaru Forester - Brakes Grabbing

the car when i drive at lower than 20 km/h wud kind off slam on the brakes on itself aggressively and then when i step on the gas pedal it wud jus move nd act normal.