Fix slug field type and make it work in the frontend