When I was on creative mode I placed a sticky piston horizontally on the ground, with a slime block placed in front of it and the piston would not extend when i activated it.
I actually noticed that it can be moved horizontally but only if its not on the ground and i think its because the slime block links itself to the ground.
Duplicate of MC-54444. The slime block has to be in the air.