AEO, thanks for the speedy response!
Yes, I do need to slide the wheel out backwards I think. But I don't seem to be able to move the wheel forwards enough to slacken the chain enough to derail it from the cog. It slackens a little but I can't get it off the cogs. Any suggestions?