Update slot formatting to use lambdas