added slugify function, bugfix escaping in resources listing page