Right-clicking a Slime Block with a Shovel will turn it into a Compressed Slime Block. Clicking more will compress it further, or reset it.
Touching a Compressed Slime Block will launch you into the air. The more it's compressed, the higher you bounce.