resizing and graying out