And, make sure to warm up before you stretch. Some gentle exercise, and even a little hot water soak of your legs/feet.

Also, a note about spinning. I, too, find it harder than actual riding. For me, it helps to remember that I can ride my own class, just like out on the bike I can ride my own ride. If you need to sit out a set or just spin easy to recover for a few minutes, do it!