updating background dimensions