We can make a horizontal transverse wave by moving the slinky vertically up and down. In a longitudinal wave the particles are displaced parallel to the direction the wave travels. An example of longitudinal waves is compressions moving along a slinky.
HOPE IT HELPS