added 5px padding to width and height to compensate rounding errors