It is hard to stop and dismount at the same time. You need to slow, lean your bike slightly to one side, and then put your foot down. You should be putting your foot down as you are at the point where you are almost stopped. Then, when one foot is firmly on the ground and you are stopped, you can swing your leg back and over to dismount.
This will become more like one action , but it's not.