Get a nice bit of solid ally bar, which is the right size for height, depth and width to match the worktop, file then sand and smooth front edge to match the worktop edge.
Drill bar on the side near back and front and countersunk ready for fixing.(assuming non hard worktops)
Slide cooker out, fix bar to worktop so it is flush on top and front, slide cooker back in and job done.