added slugify when saving posts