Walk away! As soon as she does it, walk away!! I always find it's attention seeking, and if you shout and smack her, then she has got your attention!! My mare does it if she gets stroppy, and as soon as she does it, I walk away. Then when she stops doing it, I go back to her and praise her!