My shop floor also has a slope and I've jacked vehicles up hundreds of times. I use one of two different techniques depending on the vehicle. This assumes a good quality floor jack with wheels that actually roll. As you jack the car up the saddle on the jack moves in an arc so either the car or the jack has to roll.
If the vehicle is one that I can do one side at a time then that's what I do. I lock the brakes and/or block the wheels, jack up one side, put the stands under and then jack the other side and put stands under.
If I need to do one end and then the other I block the wheels and leave the car in neutral. Then I jack the uphill end, set it on stands and go around the the other end and repeat the jack and jack stand operation. I have very occasional had the jack and car roll back a little against the block but I like to let the car and the jack both roll as that seems to cut down on the chances of the saddle moving from my preferred jack point.