add responsive functionality for medium