added dynamic grid behaviour (screensize)