Auto-append to URL-Appendix

thx a lot!
this helped me for a solution:

<?php
use Kirby\Cms\Page;
use Kirby\Toolkit\Str;

class EventPage extends Page
{

    public static function create(array $props): Page
    {
        $props['slug'] = Str::slug($props['content']['title'] . "-" . Str::random(3));
        
        return parent::create($props);
    }
}

just a “cosmetic question”: is it possible to also see this in the preview area while creating the page? currently the preview is generated live from title while entering title