Tried the railing with I instead of deleting the face

I had the ‘inset face’ in my mind so instead of the deleting the face of the railings, i added an inset face and merged the upper and lower edge and then extruded the sides.