modified flipfolder.py to append correct div on elements to flip