Here's a video a friend and I did on replacing the valve cover gasket. This was on the 335d which uses the same motor and the procedure was the same for you most part. We'll be doing my x5d next weekend and I'll post that video too. Please like and subscribe
https://youtu.be/KO6ZAcnybTs
https://youtu.be/Dk8jYgwmbpE