apply responsive layout