There is sometimes confusion between sliding and drifting with a motor. With the slide you go through the turn with the highest possible speed. You do this by braking hard as late as possible. As you enter the corner, you slide towards it, as it were. You let the rear break out in a controlled manner in the direction of travel, so that the rear wheel is almost perpendicular to the front wheel.
Drifting often goes hand in hand with motorcycles with an extended swingarm, but it is also possible with a standard swingarm. With an extended swingarm there is less pressure on the rear wheel and you can control the bike better. By building up the revs from a standstill and releasing the clutch, you make the rear wheel turn faster than the front wheel, causing the drift.