I really wouldn't worry at this stage, this behavior should start to lessen as he gets older and is halter trained and taught respect. You should never slap a foal and really if you don't just simply push him away and ignore it he will start to think you are playing and treat you as though your one of the pack.
The respect will come as long as use good horsemanship throughout his life and treat him with the firmness an entire needs.