Another method is to remove the middle vertex. Select the middle vertex.
Press the V key to rip off the vertex to the desired location. Select two opposing triangular faces and delete them. Press #1 on the keyboard to go to vertex mode and select all four vertices. Press “F” key to filling in the face. Do the same to another sidea