How do you frimly stick a whole tubifex cube on the glass of the tank?

Hi!
I have a tubifex worm cubes, how do you make it stick? Mine keep falling off, I cut the cube in half because I only have a small amount of fish.

How do you frimly stick a whole tubifex cube on the glass of the tank?