Pick and place mechanism