You need to have a frank chat with your boss about it. Its not possible to handle both with equal dedication. I hope he/she understands your situation and provides you some flexibility . May be you will have to compromise on your salary and position.