It is a battle of wills. You have to be consistent every. Single. Time. Time out for as many minutes as her age, and after every t/o session, you speak sternly and make sure she looks you in the eye, tell her why she went in t/o:
"Mommy and daddy put you in timeout for slapping x. We do not...