modified inventory to center and for all screen size