updating slug blog middleware