added slugify filter. refactored a bit. still needs splitting