Projection algorithms with dynamic stepsize for constrained composite minimization