Exercise? Are ab exercises safe after 1st Tri?

Shari
I have always exercised a few times a week and I am trying to stay on track while pregnant. I have heard some Ab exercises are not safe after 1st trimester because you are on your back. If so what about sleeping on your back?