If this is a functioning gun, it's horribly irresponsible, and possibly illegal. Don't make edibles look like candy.
First, I understand that this is a novelty gun. However, isn't it a terrible idea to have a hole in the top of the slide like that? I mean it's a glock, so it would probably run fine even with most debris but even still why cut a hole in it?