Stack a couple of face-up piston on the two slimes. Get rid of the middle one and look under the now floating one. Place a sticky piston while looking at the bottom to face it upside down. This will bring up the blocks underneath with it.