You cannot use a phone number for iMessage that is different than the active SIM.
You can use any email address that is tied to your Apple account. You can also choose whether you start new conversations from your current active phone number (which will change when you change SIMs) or one of your email addresses (which will remain constant) in Settings - Messages - Send & Receive.