Automatic html template for slice variables