Jslink number of cols in panel holoviews + holomaps to ndlayout and back?

Is there a way to dynamically jslink cols()?

range_widget = pn.widgets.IntegerSlider(value=1, start=1, end=1000, name='num_columns')
plot = hv.Curve([0, 1, 2]) + hv.Curve([5, 6, 7])
plot = plot.cols(1)

code = """
cols = source.value
"""
range_widget.jslink(plot, code={'value': code})
pn.Row(plot, range_widget)

And also, is there a way to transform HoloMaps into NdLayout (probably not but would be a nice feature to have)?