Swipe card with cube effect

I have two cards in the swipe card and when I choose the cube effect and loop parameter, the swipe card can not return to the first card and it will create extra empty cards. How can I slide second card to first card and delete the empty cards ?