add slugify funtion to entry model