align overlay and background