Germany head coach Julian Nagelsmann says he would prefer to keep the size of Euro 2024 squads to 23 players.