On variational modelling of wave slamming by water waves