add generate3DPosition() to produce the position for every slide