automatically create cards depending on how many images there is in the folder