swipe messages and add background shadow