How to slide object on the surface of the other while it's surface will be parallel?

I tried to use ‘magnet’ button at the top and object indeed starts moving along the other surface, but it doesn’t change it’s rotation, so that it’s surface would be parallel surface of another object.
Like that:

you need to enable rotation alignment -

2 Likes