Window unit AC installation in narrow window
The accordion side panels should be removable (in fact the AC is probably sold with them detached to make a more compact box).  To seal the window you'll need to put something else to fill the gap between the side of the AC and the window frame.  A small piece of plywood cut to fit would probably work.