Using enough dairy-free margarine or coconut oil and ensuring the mixture is well-pressed into the pan will help the treats stick together. If needed, you can also slightly increase the amount of marshmallows.