add slug index to posts for controller to work