Boundary-layer flows from fixed to moving surfaces including gap effects