handle when slug is not found in database