Idealised tidal dynamics in an estuary with a horizontally movable time dependent barrier