When slapping becomes problematic to you then it is a behavioral problem that should be treated by an animal behaviorist. If your cat is scratching and biting while slapping it is also more of a cause for concern. Your cat needs to learn to be well-behaved to make a good pet.