Let amount of slides be of arbitrary length
Adds func to write formatted strings to stderr and exit
Now collects paths in dir outside main
Fix allocation of slides, nul terminate slides array