The story you refer to appeared in Star Wars Annual #1 in 1979. Some of these once a year specials were reprinting stories that first ran in the UK Marvel Star Wars book, which was a weekly black and white publication, and sometimes needed more material as a result.
I think this is the panel you’re thinking of.
or