added option handle to choose if marginalizing or slicing likelihood