Making responsive image slider widget