Adaptable grid width

Signed-off-by: Guillaume George <guillaume.george@etu.utc.fr>