better slideshow atts-generation function, phpdoc comments cleanup